{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"component\"],\n  _excluded2 = [\"className\"],\n  _excluded3 = [\"className\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport Item from './Item';\nimport { OverflowContext } from './Overflow';\nvar InternalRawItem = function InternalRawItem(props, ref) {\n  var context = React.useContext(OverflowContext); // Render directly when context not provided\n\n  if (!context) {\n    var _props$component = props.component,\n      Component = _props$component === void 0 ? 'div' : _props$component,\n      _restProps = _objectWithoutProperties(props, _excluded);\n    return /*#__PURE__*/React.createElement(Component, _extends({}, _restProps, {\n      ref: ref\n    }));\n  }\n  var contextClassName = context.className,\n    restContext = _objectWithoutProperties(context, _excluded2);\n  var className = props.className,\n    restProps = _objectWithoutProperties(props, _excluded3); // Do not pass context to sub item to avoid multiple measure\n\n  return /*#__PURE__*/React.createElement(OverflowContext.Provider, {\n    value: null\n  }, /*#__PURE__*/React.createElement(Item, _extends({\n    ref: ref,\n    className: classNames(contextClassName, className)\n  }, restContext, restProps)));\n};\nvar RawItem = /*#__PURE__*/React.forwardRef(InternalRawItem);\nRawItem.displayName = 'RawItem';\nexport default RawItem;","map":{"version":3,"names":["_extends","_objectWithoutProperties","_excluded","_excluded2","_excluded3","React","classNames","Item","OverflowContext","InternalRawItem","props","ref","context","useContext","_props$component","component","Component","_restProps","createElement","contextClassName","className","restContext","restProps","Provider","value","RawItem","forwardRef","displayName"],"sources":["/data/messenger.client/node_modules/rc-overflow/es/RawItem.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"component\"],\n    _excluded2 = [\"className\"],\n    _excluded3 = [\"className\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport Item from './Item';\nimport { OverflowContext } from './Overflow';\n\nvar InternalRawItem = function InternalRawItem(props, ref) {\n  var context = React.useContext(OverflowContext); // Render directly when context not provided\n\n  if (!context) {\n    var _props$component = props.component,\n        Component = _props$component === void 0 ? 'div' : _props$component,\n        _restProps = _objectWithoutProperties(props, _excluded);\n\n    return /*#__PURE__*/React.createElement(Component, _extends({}, _restProps, {\n      ref: ref\n    }));\n  }\n\n  var contextClassName = context.className,\n      restContext = _objectWithoutProperties(context, _excluded2);\n\n  var className = props.className,\n      restProps = _objectWithoutProperties(props, _excluded3); // Do not pass context to sub item to avoid multiple measure\n\n\n  return /*#__PURE__*/React.createElement(OverflowContext.Provider, {\n    value: null\n  }, /*#__PURE__*/React.createElement(Item, _extends({\n    ref: ref,\n    className: classNames(contextClassName, className)\n  }, restContext, restProps)));\n};\n\nvar RawItem = /*#__PURE__*/React.forwardRef(InternalRawItem);\nRawItem.displayName = 'RawItem';\nexport default RawItem;"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,wBAAwB,MAAM,oDAAoD;AACzF,IAAIC,SAAS,GAAG,CAAC,WAAW,CAAC;EACzBC,UAAU,GAAG,CAAC,WAAW,CAAC;EAC1BC,UAAU,GAAG,CAAC,WAAW,CAAC;AAC9B,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,IAAI,MAAM,QAAQ;AACzB,SAASC,eAAe,QAAQ,YAAY;AAE5C,IAAIC,eAAe,GAAG,SAASA,eAAe,CAACC,KAAK,EAAEC,GAAG,EAAE;EACzD,IAAIC,OAAO,GAAGP,KAAK,CAACQ,UAAU,CAACL,eAAe,CAAC,CAAC,CAAC;;EAEjD,IAAI,CAACI,OAAO,EAAE;IACZ,IAAIE,gBAAgB,GAAGJ,KAAK,CAACK,SAAS;MAClCC,SAAS,GAAGF,gBAAgB,KAAK,KAAK,CAAC,GAAG,KAAK,GAAGA,gBAAgB;MAClEG,UAAU,GAAGhB,wBAAwB,CAACS,KAAK,EAAER,SAAS,CAAC;IAE3D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